package com.share.shrimpcolo.pet;

public class Master {
	private String name = "";
	private int money = 0;
	
	public Master(String name, int money) {
		this.name = name;
		this.money = money;
	}
	
	/**
	 * Dog喂食
	 */
	public void feed(Dog dog) {
		dog.eat();
	}
	
	/**
	 * Penguin喂食
	 */
	public void feed(Penguin pgn) {
		pgn.eat();
	}
	
	/**
	 * Cat喂食
	 */
//	public void feed(Cat cat) {
//		cat.eat();
//	}
	//....
	
	

}
